<template>
  <div class="floating-window">
    <button @click="onButtonClick">Click me!</button>
    <div v-if="show">单击显示文字</div><a-icon type="close" />
  </div>
</template>
<script>
export default {
  data() {
    return {
      show: false,
    };
  },
  methods: {
    onButtonClick() {
      this.show = !this.show;
    },
  },
};
</script>
<style>
.floating-window {
  background-color: bisque;
  width: 300px;
  height: 150px;
  
  position: fixed;
  bottom: 100px;
  right: 100px;
  z-index: 99999;
}
</style>
